<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:mo="https://gitee.com/aun/Timo">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="timo-detail-page">
        <div class="timo-detail-title">基本信息</div>
        <table class="layui-table timo-detail-table">
            <colgroup>
                <col width="100px"><col>
                <col width="100px"><col>
            </colgroup>
            <tbody>
                <tr>
                    <th>标题</th>
                    <td th:text="${flowSql.title}"></td>
                    <th>所属版本</th>
                    <td th:text="${#entity.getLabel(versions,flowSql.version_id,'id','version')}">版本名称</td>
                </tr>
                <tr>
                    <th>SQL的内容</th>
                    <td colspan="3">
                        <textarea th:utext="${flowSql.content}" rows="10" cols="90" readonly="readonly"></textarea>
                    </td>
                </tr>
                <tr>
                    <th>提交人</th>
                    <td th:text="${#entity.getUsername(flowSql.create_id)}"></td>
                    <th>提交时间</th>
                    <td th:text="${#dates.format(flowSql.create_time, 'yyyy-MM-dd HH:mm:ss')}"></td>
                </tr>
            </tbody>
        </table>
    </div>
<script th:replace="/common/template :: script"></script>
</body>
</html>